{% extends "base.html" %}

{% block content %}
    {% block manage_buttons %}{% endblock %}
    
    {% if is_paginated %}
        <div class="page_navigator">
            <p>
            {% if has_previous %}
                <a href="?page={{ previous }}">Previous</a>
            {% endif %}
            page {{ page }} of {{ pages }}
            {% if has_next %}
                <a href="?page={{ next }}">Next</a>
            {% endif %}
            <p>
        </div>
    {% endif %}
    
    {% if object_list %}
        <table>
            {% block table_header %}{% endblock %}
            {% block table_body %}{% endblock %}
        </table>
    {% else %}
        {% block empty_list %}{% endblock %}
    {% endif %}
{% endblock %}